package cn.stylefeng.guns.modular.transport.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.transport.entity.MapDisptchMongo;
import cn.stylefeng.guns.modular.transport.entity.Trace;
import cn.stylefeng.guns.modular.transport.model.params.TraceParam;
import cn.stylefeng.guns.modular.transport.model.result.TraceResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 高德轨迹信息表 服务类
 * </p>
 *
 * @author like
 * @since 2024-09-11
 */
public interface TraceService extends IService<Trace> {

    /**
     * 新增
     *
     * @author like
     * @Date 2024-09-11
     */
    void add(TraceParam param);

    /**
     * 删除
     *
     * @author like
     * @Date 2024-09-11
     */
    void delete(TraceParam param);

    /**
     * 更新
     *
     * @author like
     * @Date 2024-09-11
     */
    void update(TraceParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author like
     * @Date 2024-09-11
     */
    TraceResult findBySpec(TraceParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author like
     * @Date 2024-09-11
     */
    List<TraceResult> findListBySpec(TraceParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author like
     * @Date 2024-09-11
     */
     LayuiPageInfo findPageBySpec(TraceParam param,String condition);




    ResponseData uploadTracePointLocal( MapDisptchMongo mapDisptch);


}
